<?php

// Namespace

namespace Loop;


/**
 * CUserGroupClassPermission is a class that defines whether a user has permission to perform actions on a class
 *
 * @package		Loop
 * @category	Model
 */

class CUserGroupClassPermission extends \Loop\CObject
{
	/**
	 *
	 */
	
	protected function createProperties()
	{
		$this->createProperty
		(
			'action',
			array
			(
				'isRequired' => true,
				'type' => TYPE_STRING_SHORT
			)
		);
		
		$this->createProperty
		(
			'className',
			array
			(
				'isRequired' => true,
				'type' => TYPE_STRING_MEDIUM
			)
		);
		
		$this->createProperty
		(
			'extensionId',
			array
			(
				'isRequired' => true,
				'type' => TYPE_STRING_MEDIUM
			)
		);
		
		$this->createProperty
		(
			'isEnabled',
			array
			(
				'type' => TYPE_BOOLEAN
			)
		);
		
		$this->createProperty
		(
			'userGroupId',
			array
			(
				'className' => 'CUserGroup',
				'extensionId' => EXTENSION_LOOP,
				'isAssociation' => true,
				'isRequired' => true
			)
		);
	}
}

?>
